06. Create Service Classes
Create Model Classes
In this section, we will need to create the service classes in order to combine features that do not belong in our domain or model class. Services can be either stateless or stateful. In our project the services will be stateful and will utilize Collections to store, retrieve and process data. Because our services are stateful they will need to provide static references, making them singleton objects.
Here are the steps you'll need to complete to create the service classes:
Create a new package
Task Description:
Now it's time to create our service
package so we can start to add our service classes
Task Feedback:
Nice Work!
Create the CustomerService class
Task Description:
Next you'll need to create the ** CustomerService class**. It should have the following:
Task Feedback:
Nice work!
Create the ReservationService class
Task Description:
Next you'll need to create the ** ReservationService class**. It should have the following:
Task Feedback:
Nice work!